import request from '@/utils/request'

// 根据单位id查询业主人员列表
export function getmanagePerList (query) {
  return request({
    url: '/employee/supervision/list',
    method: 'get',
    params: query
  })
}
// 授权点部门树
export function getDeptTreeDeptData (query) {
  return request({
    url: '/tree/construction_point',
    method: 'get',
    params: query
  })
}

// 监管单位部门树
export function getDeptTree (query) {
  return request({
    url: '/company/supervision_org/list',
    method: 'get',
    data: query
  })
}
// 绑定
export function bindEmpower (query) {
  return request({
    url: '/system/dept/bindEmpower',
    method: 'post',
    data: query
  })
}
// 管理人员权限下发查询列表
export function findListData (query) {
  return request({
    url: `/system/dept/supervisor/userList?pageNum=${query.pageNum}&pageSize=${query.pageSize}`,
    method: 'post',
    data: query
  })
}
// 取消绑定
export function unBindEmpower (query) {
  console.log(query, 'id+++++++++')
  return request({
    url: '/system/dept/unBindEmpower',
    method: 'get',
    params: query
  })
}
